const imgsFiles = require.context('./player', false, /play\d\.png/)

const imgs = imgsFiles.keys().reduce((imgs, imgPath) => {
    const imgName = imgPath.replace(/^\.\/(.*)\.\w+$/, '$1')
    const value = imgsFiles(imgPath)
    imgs[imgName] = value.default
    return imgs;
}, {})

export default imgs;